package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.ServiceItem;
import cn.wolfcode.car.business.domain.Statement;
import cn.wolfcode.car.business.query.ServiceItemQuery;
import cn.wolfcode.car.business.query.StatementQueryObject;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface StatementMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Statement record);

    Statement selectByPrimaryKey(Long id);

    List<Statement> selectAll();

    int updateByPrimaryKey(Statement record);

    List<Statement> selectForList(StatementQueryObject qo);


    void updateBy(@Param("itemPrice") BigDecimal itemPrice, @Param("statementId") Long statementId, @Param("totalAmount") BigDecimal totalAmount, @Param("countAmount") BigDecimal countAmount);

    void updatePay(@Param("statementId") Long statementId, @Param("payId") Long id, @Param("statusPaid") Integer statusPaid);

    Statement selectByappointment(Long id);

}